close all;clear;clc;
x = linspace(0,1,50)' * pi/2;

Y = cos(x) * (1:10);
subplot(1,2,1)
Lh = plot(x,Y)

colormap(lines(10))
colorbar('Posotion',[0.5,0.155,0.033,0.8],'Ticklabels',[])